package Test2;




//借书卡 属性
public class Card{
	/**
	 * 
	 */
	private Integer id;   //编号	
	private  String name; //持卡人姓名
    private String classRoom;//班级
    private String major; //专业
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getClassRoom() {
		return classRoom;
	}
	public void setClassRoom(String classRoom) {
		this.classRoom = classRoom;
	}
	public String getMajor() {
		return major;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	@Override
	public String toString() {
		return "Card [id=" + id + ", name=" + name + ", classRoom=" + classRoom + ", major=" + major + "]";
	}
	public Card(Integer id, String name, String classRoom, String major) {
		super();
		this.id = id;
		this.name = name;
		this.classRoom = classRoom;
		this.major = major;
		
	}
	public Card() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
    
}
